﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<RESTServicesMov.Dominio.CentroProd>>" %>
                                                                                    
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Registros de Centro-Producto
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Lista</h2>

    <table>
        <tr>
            <th></th> 
            <th>
                Almacen
            </th> 
            <th>
                Producto
            </th>
            <th>
                StockMin
            </th>
            <th>
                StockMax
            </th>
            <th>
                Stock
            </th>
        </tr>
       
    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.idCentro }, new { id = item.idProducto })%> |
                <%: Html.ActionLink("Detalles", "Details", new { id = item.idCentro }, new { id = item.idProducto })%> 
                     </td> 
            <td>
                <%: item.idCentro %><%-- - <%: item.Centro.denCentro%>--%> 
            </td>
            <td>
                <%: item.idProducto%> <%--- <%: item.Producto.Denominacion%>--%>
            </td> 
            <td>
                <%: item.StockMin %>
            </td>
            <td>
                <%: item.StockMax %>
            </td>
            <td>
                <%: item.Stock %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear nuevo", "Create") %>
    </p>

</asp:Content>

